﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008A1 RID: 2209
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GOBJOHACLKA : IMessage<GOBJOHACLKA>, IMessage, IEquatable<GOBJOHACLKA>, IDeepCloneable<GOBJOHACLKA>, IBufferMessage
	{
		// Token: 0x17001BCB RID: 7115
		// (get) Token: 0x060062B5 RID: 25269 RVA: 0x00106055 File Offset: 0x00104255
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GOBJOHACLKA> Parser
		{
			get
			{
				return GOBJOHACLKA._parser;
			}
		}

		// Token: 0x17001BCC RID: 7116
		// (get) Token: 0x060062B6 RID: 25270 RVA: 0x0010605C File Offset: 0x0010425C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GOBJOHACLKAReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001BCD RID: 7117
		// (get) Token: 0x060062B7 RID: 25271 RVA: 0x0010606E File Offset: 0x0010426E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GOBJOHACLKA.Descriptor;
			}
		}

		// Token: 0x060062B8 RID: 25272 RVA: 0x00106075 File Offset: 0x00104275
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GOBJOHACLKA()
		{
		}

		// Token: 0x060062B9 RID: 25273 RVA: 0x00106080 File Offset: 0x00104280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GOBJOHACLKA(GOBJOHACLKA other) : this()
		{
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this.scepterId_ = other.scepterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060062BA RID: 25274 RVA: 0x001060CC File Offset: 0x001042CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GOBJOHACLKA Clone()
		{
			return new GOBJOHACLKA(this);
		}

		// Token: 0x17001BCE RID: 7118
		// (get) Token: 0x060062BB RID: 25275 RVA: 0x001060D4 File Offset: 0x001042D4
		// (set) Token: 0x060062BC RID: 25276 RVA: 0x001060DC File Offset: 0x001042DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x17001BCF RID: 7119
		// (get) Token: 0x060062BD RID: 25277 RVA: 0x001060E5 File Offset: 0x001042E5
		// (set) Token: 0x060062BE RID: 25278 RVA: 0x001060ED File Offset: 0x001042ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScepterId
		{
			get
			{
				return this.scepterId_;
			}
			set
			{
				this.scepterId_ = value;
			}
		}

		// Token: 0x060062BF RID: 25279 RVA: 0x001060F6 File Offset: 0x001042F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GOBJOHACLKA);
		}

		// Token: 0x060062C0 RID: 25280 RVA: 0x00106104 File Offset: 0x00104304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GOBJOHACLKA other)
		{
			return other != null && (other == this || (object.Equals(this.CostData, other.CostData) && this.ScepterId == other.ScepterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060062C1 RID: 25281 RVA: 0x00106154 File Offset: 0x00104354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this.ScepterId != 0U)
			{
				num ^= this.ScepterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060062C2 RID: 25282 RVA: 0x001061A9 File Offset: 0x001043A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060062C3 RID: 25283 RVA: 0x001061B1 File Offset: 0x001043B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060062C4 RID: 25284 RVA: 0x001061BC File Offset: 0x001043BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ScepterId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.ScepterId);
			}
			if (this.costData_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.CostData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060062C5 RID: 25285 RVA: 0x00106218 File Offset: 0x00104418
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this.ScepterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScepterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060062C6 RID: 25286 RVA: 0x00106270 File Offset: 0x00104470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GOBJOHACLKA other)
		{
			if (other == null)
			{
				return;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			if (other.ScepterId != 0U)
			{
				this.ScepterId = other.ScepterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060062C7 RID: 25287 RVA: 0x001062D8 File Offset: 0x001044D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060062C8 RID: 25288 RVA: 0x001062E4 File Offset: 0x001044E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.costData_ == null)
						{
							this.CostData = new ItemCostData();
						}
						input.ReadMessage(this.CostData);
					}
				}
				else
				{
					this.ScepterId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040025BB RID: 9659
		private static readonly MessageParser<GOBJOHACLKA> _parser = new MessageParser<GOBJOHACLKA>(() => new GOBJOHACLKA());

		// Token: 0x040025BC RID: 9660
		private UnknownFieldSet _unknownFields;

		// Token: 0x040025BD RID: 9661
		public const int CostDataFieldNumber = 15;

		// Token: 0x040025BE RID: 9662
		private ItemCostData costData_;

		// Token: 0x040025BF RID: 9663
		public const int ScepterIdFieldNumber = 6;

		// Token: 0x040025C0 RID: 9664
		private uint scepterId_;
	}
}
